﻿<HTML>
  <HEAD>
    <META http-equiv="Content-Type" content="text/html; charset=utf-8">
    <TITLE>CopyFeatures geoprocessing tool</TITLE>
    <LINK REL="stylesheet" TYPE="text/css" HREF="http://help.arcgis.com/en/sdk/10.0/common/style/esri_sdk_web.css">
  </HEAD>
  <BODY topmargin="0" id="bodyID" class="dtBODY">
    <div class="sdk_topic">
      <div id="nsbanner" esri_sdk_guid="5151e11c-2ae6-4329-8b41-6795dab6f9f6" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
        <div id="TitleRow" class="bannertitle">
          <table class="titleWithBackground">
            <td>
              <H1>CopyFeatures geoprocessing tool<a name="ICallout"></a></H1>
            </td>
          </table>
        </div>
      </div><br xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><div class="main">
        <fieldset class="Property" style="width: auto" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
          <legend class="PropertyName">Purpose</legend><span class="PropertyValue"><purpose>
    <div xmlns="http://www.w3.org/1999/xhtml">This sample demonstrates the execution of geoprocessing tools—such as MakeFeatureLayer, SelectLayerByLocation, SelectLayerByAttribute, and CopyFeatures—using the GeoProcessor class. The following workflow is implemented using the previously mentioned geoprocessing tools:</div>
    <ol style="" type="disc" xmlns="http://www.w3.org/1999/xhtml">
      <li>Feature layers are created (MakeFeatureLayer tool)</li>
      <li>Features are selected using a location-based query (SelectLayerByLocation tool)</li>
      <li>Of the features selected, only those features that meet another criteria are selected (SelectLayerByAttribute tool)</li>
      <li>All selected features are copied to a new feature class (CopyFeatures tool)</li>
    </ol>
    <div xmlns="http://www.w3.org/1999/xhtml">The main purpose of this sample is to demonstrate creating geographic information system (GIS) solutions using coarse-grained geoprocessing tools.</div>
  </purpose></span></fieldset><br xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><h4>How to use</h4>
        <p>See 
        <a href="http://help.arcgis.com/en/sdk/10.2/java_ao_adf/conceptualhelp/engine/index.html#/samples/00010000042n000000/">How to use ArcGIS samples</a>
        for help running the sample.</p>
        <ol>
          <li>Run the sample.</li>
          <li>After the sample executes, examine wellsCopy.shp in the output directory. This shapefile is the output of the CopyFeatures geoprocessing tool, which copies features from the supplied layer.</li><br></ol><br><br><hr tabIndex="-1" xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><br xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><table class="dtTable" cellspacing="0" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
          <tr>
            <th>Development licensing</th>
            <th>Deployment licensing</th>
          </tr>
          <tr style="empty-cells:show">
            <td>Engine Developer Kit</td>
            <td>Engine</td>
          </tr>
          <tr style="empty-cells:show">
            <td>
            </td>
            <td>ArcGIS for Desktop Basic</td>
          </tr>
        </table><br xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><br><br></div>
    </div>
  </BODY>
</HTML>